home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
MacWorld 1999 February
/
Macworld (1999-02).dmg
/
Games World
/
Hot Demos!
/
DroidWorks demo
/
dwCD.gob
/
mission_cog_00_sectorthrust.cog
< prev
next >
Wrap
Text File
|
1998-09-17
|
1KB
|
51 lines
# DroidWorks Cog Script
#
# 00_SectorThrust.cog
#
# Thrust it!
#
# Desc:
# Kind of like the JK Sectorthrust, but different, because I wrote it.
# Each Sector pair is tied to a vector. They all share the same thrust value.
#
# 11/10/97 [DGS] Added to Tree
# Added extra vectors
#
symbols
message startup
vector vec0 desc=thrust_direction
vector vec1 desc=thrust_direction
vector vec2 desc=thrust_direction
vector vec3 desc=thrust_direction
float speed=1.0 desc=thrust_speed
sector sector0a
sector sector0b
sector sector1a
sector sector1b
sector sector2a
sector sector2b
sector sector3a
sector sector3b
end
code
//-----------------------------------------------------------------------------
startup:
if (sector0a >= 0) SectorThrust(sector0a, vec0, speed);
if (sector0b >= 0) SectorThrust(sector0b, vec0, speed);
if (sector1a >= 0) SectorThrust(sector1a, vec1, speed);
if (sector1b >= 0) SectorThrust(sector1b, vec1, speed);
if (sector2a >= 0) SectorThrust(sector2a, vec2, speed);
if (sector2b >= 0) SectorThrust(sector2b, vec2, speed);
if (sector3a >= 0) SectorThrust(sector3a, vec3, speed);
if (sector3b >= 0) SectorThrust(sector3b, vec3, speed);
return;
end